construct a square